<extend name="Public/base"/>

<block name="body">
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title cf">
        <h2>
             <if condition="ACTION_NAME eq 'add'">编辑技术评估报表
                <else/>
                                                       技术评估报表详情
            </if>
           
        </h2>
    </div>
    
    <div id="max" style="position:relaitve;" >
    
    <!-- 弹框 这里调整个弹框的位置 -->
    <div id="tankuang" style=" margin-top:52px; display:none; font-size: 12px; line-height: 2; color: #fff; font-family: '宋体';margin-left:50px; width:700px;height:500px;position:absolute; z-index:3;">
    
    <!-- 优势框（分为左部分和右部分，颜色也在这里调） -->
    <div class="box" style="width: 90%; overflow: hidden; margin: 20px auto 0 auto;">
		<div id="p1_left" style="float:left; width:50px; padding: 10px; height: 40px;  background: #9a0043;font-size:13px; ">
		优势
        </div>
	<div id="p1_center">		    ____________________________________________________________________________________________       
	</div>
		<div id="p1_right">
			
			<div class="con" style="height: 160px; padding: 10px;  background: #4390aa">
			<br/>
			1.领先的数据处理平台架构设计，基于BI（商业智能）平台的强大后台数据整合技术优势，实现多维多角度查询，为用户提供更灵活、多层面的深度分析能力的技术优势,运用Hadoop的云计算平台，实现无限量线性扩充</br>
			2.优质的用户体验,卓越的数据可视化技术优势，将多种核心数据以可视化的形式展现给用户，让用户一目了然,采用敏捷开发，以最快速度实现用户需求，不断为用户推出更贴心的服务.</br>
			3.稳定可靠的系统技术优势,基于云计算平台，在电子商务与金融行业具备领先的互联网产品研发与运营经验，有效保证平台的稳定可靠.</div>
		</div>
	</div>
	
	<!-- 劣势框（分为左部分和右部分，颜色也在这里调） -->
	<div class="box" style="width: 90%; overflow: hidden; margin: 20px auto 0 auto;">
		<div id="p1_left" style="float:left; width:50px; padding: 10px; height: 40px; font-size:13px; background:#BB3D00;">
		劣势
       </div>
	
	<div id="p1_center">		    ____________________________________________________________________________________________       
	</div>
	<div id="p1_right" style="height:100px">
			
			<div class="con" style="height: 160px; padding: 10px;  background: #4390aa">
			                <br/>
			                 l  只能运行于Windows平台</br>

                             2  效率低于本地化编译程序(C/C++)</br>

                             3  开放性低于与Java, 在超大规模应用中缺乏有力案例</div>
		</div>
	</div>
    
    </div>
    <!-- 表单 -->
    <div class="with-padding"  style="position:absolute; z-index:2;">
      
        
        <h2>评估报表</h2> 
<form action="{:U()}" method="post" class="form-horizontal">
<textarea name="report" style="height:400px">{$rst['report']}</textarea>


<script type="text/javascript" charset="utf-8" src="__STATIC__/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__STATIC__/ueditor/ueditor.all.js"></script>
<script type="text/javascript" charset="utf-8" src="__STATIC__/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">
	$('textarea[name="report"]').attr('id', 'editor_id_{"report"}');
	window.UEDITOR_HOME_URL = "__STATIC__/ueditor";
	window.UEDITOR_CONFIG.initialFrameHeight = parseInt('{$addons_config.editor_height}');
	window.UEDITOR_CONFIG.scaleEnabled = true;//false
	window.UEDITOR_CONFIG.imageUrl = '{:addons_url("EditorForAdmin://Upload/ue_upimg")}';
	window.UEDITOR_CONFIG.imagePath = '';
	window.UEDITOR_CONFIG.imageFieldName = 'imgFile';
	UE.getEditor('editor_id_{"report"}');
</script>


       <!--  {:hook('adminEditor', array('name'=>'report','value'=>2))} -->
       <!-- 
                <div class="widget-box widget-color-blue" style="width:1000">
				   <div class="widget-header widget-header-small"></div>
				   <div class="widget-body">
				      <div class="widget-main no-padding">
				         <textarea name="content" data-provide="markdown" rows="10"></textarea>
				      </div>
				   </div>
				</div> -->
		      <!-- <label class="textarea input-large">
		      {:W('Common/Ueditor/editor',array('report','report',$data['report'],'1000px','400px'))}
               
                  
                    <textarea name="report" class="form-control" style="width: 1000px;height: 400px" >{$data.report}</textarea>
              </label> -->
         
     				
        <div class="form-item" style="margin-top:20px">
            <input type="hidden" name="id" value="{$rst.id}"/>
				<button type="submit" class="btn submit-btn ajax-post" target-form="form-horizontal">{:L("_SURE_WITH_SPACE_")}</button>            
				<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">{:L("_RETURN_WITH_SPACE_")}</button>
		</div>      
   </form>
       
    </div>
     
</div>
                            
</block>

<block name="script">
    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <script type="text/javascript" charset="utf-8">
    Think.setValue('type', {$data.type|default = 1});
    Think.setValue('lstates', {$data.lstates|default = 1});
        //导航高亮
       /*  highlight_subnav('{:U('Actmanage/vipindex')}'); */
    </script>
    
    <link type="text/css" rel="stylesheet" href="/duijie/Public/js/ext/magnific/magnific-popup.css"/>
    <script type="text/javascript" src="/duijie/Public/js/ext/magnific/jquery.magnific-popup.min.js"></script>

    <script type="text/javascript" charset="utf-8" src="/duijie/Public/js/ext/webuploader/js/webuploader.js"></script>
    <link href="/duijie/Public/js/ext/webuploader/css/webuploader.css" type="text/css" rel="stylesheet">
     
      
          <script type="text/javascript" src="/duijie/Public/assets/js/uncompressed/markdown/markdown.js"></script>
          <script type="text/javascript" src="/duijie/Public/assets/js/uncompressed/markdown/bootstrap-markdown.js"></script>
          
    <script>

        $(document).ready(function () {
            $('.popup-gallery').each(function () { // the containers for all your galleries
                $(this).magnificPopup({
                    delegate: 'a',
                    type: 'image',
                    tLoading: '正在载入 #%curr%...',
                    mainClass: 'mfp-img-mobile',
                    gallery: {
                        enabled: true,
                        navigateByImgClick: true,
                        preload: [0, 1] // Will preload 0 - before current, and 1 after the current image

                    },
                    image: {
                        tError: '<a href="%url%">图片 #%curr%</a> 无法被载入.',
                        titleSrc: function (item) {
                            /*           return item.el.attr('title') + '<small>by Marsel Van Oosten</small>';*/
                            return '';
                        },
                        verticalFit: true
                    }
                });
            });
                    });
        
               
 </script>
     
     <!-- 富文本框编辑 -->
     <!-- bootstrap & fontawesome -->
		<link rel="stylesheet" href="/duijie/Public/assets/css/bootstrap.min.css" />
		<link rel="stylesheet" href="/duijie/Public/assets/css/font-awesome.min.css" />

		<!-- page specific plugin styles -->
		<link rel="stylesheet" href="/duijie/Public/assets/css/jquery-ui.custom.min.css" />

		<!-- text fonts -->
		<link rel="stylesheet" href="/duijie/Public/assets/css/ace-fonts.css" />

		<!-- ace styles -->
		<link rel="stylesheet" href="/duijie/Public/assets/css/ace.min.css" id="main-ace-style" />

		<!--[if lte IE 9]>
			<link rel="stylesheet" href="assets/css/ace-part2.min.css" />
		<![endif]-->
		<link rel="stylesheet" href="/duijie/Public/assets/css/ace-skins.min.css" />
		<link rel="stylesheet" href="/duijie/Public/assets/css/ace-rtl.min.css" />

		<!-- inline styles related to this page -->

		<!-- ace settings handler -->
		<script src="/duijie/Public/assets/js/ace-extra.min.js"></script>
         
         <script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>
        
        <script type="text/javascript">
			if('ontouchstart' in document.documentElement) document.write("<script src='assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
		</script>
		<script src="/duijie/Public/assets/js/bootstrap.min.js"></script>

		<!-- page specific plugin scripts -->
		<script src="/duijie/Public/assets/js/jquery-ui.custom.min.js"></script>
		<script src="/duijie/Public/assets/js/jquery.ui.touch-punch.min.js"></script>
		<script src="/duijie/Public/assets/js/markdown/markdown.min.js"></script>
		<script src="/duijie/Public/assets/js/markdown/bootstrap-markdown.min.js"></script>
		<script src="/duijie/Public/assets/js/jquery.hotkeys.min.js"></script>
		<script src="/duijie/Public/assets/js/bootstrap-wysiwyg.min.js"></script>
		<script src="/duijie/Public/assets/js/bootbox.min.js"></script>

		<!-- ace scripts -->
		<script src="/duijie/Public/assets/js/ace-elements.min.js"></script>
		<script src="/duijie/Public/assets/js/ace.min.js"></script>

		<!-- inline scripts related to this page -->
		<script type="text/javascript">
			jQuery(function($){
	
	function showErrorAlert (reason, detail) {
		var msg='';
		if (reason==='unsupported-file-type') { msg = "Unsupported format " +detail; }
		else {
			//console.log("error uploading file", reason, detail);
		}
		$('<div class="alert"> <button type="button" class="close" data-dismiss="alert">&times;</button>'+ 
		 '<strong>File upload error</strong> '+msg+' </div>').prependTo('#alerts');
	}

	//$('#editor1').ace_wysiwyg();//this will create the default editor will all buttons

	//but we want to change a few buttons colors for the third style
	$('#editor1').ace_wysiwyg({
		toolbar:
		[
			'font',
			null,
			'fontSize',
			null,
			{name:'bold', className:'btn-info'},
			{name:'italic', className:'btn-info'},
			{name:'strikethrough', className:'btn-info'},
			{name:'underline', className:'btn-info'},
			null,
			{name:'insertunorderedlist', className:'btn-success'},
			{name:'insertorderedlist', className:'btn-success'},
			{name:'outdent', className:'btn-purple'},
			{name:'indent', className:'btn-purple'},
			null,
			{name:'justifyleft', className:'btn-primary'},
			{name:'justifycenter', className:'btn-primary'},
			{name:'justifyright', className:'btn-primary'},
			{name:'justifyfull', className:'btn-inverse'},
			null,
			{name:'createLink', className:'btn-pink'},
			{name:'unlink', className:'btn-pink'},
			null,
			{name:'insertImage', className:'btn-success'},
			null,
			'foreColor',
			null,
			{name:'undo', className:'btn-grey'},
			{name:'redo', className:'btn-grey'}
		],
		'wysiwyg': {
			fileUploadError: showErrorAlert
		}
	}).prev().addClass('wysiwyg-style2');

	
	/**
	//make the editor have all the available height
	$(window).on('resize.editor', function() {
		var offset = $('#editor1').parent().offset();
		var winHeight =  $(this).height();
		
		$('#editor1').css({'height':winHeight - offset.top - 10, 'max-height': 'none'});
	}).triggerHandler('resize.editor');
	*/
	

	$('#editor2').css({'height':'200px'}).ace_wysiwyg({
		toolbar_place: function(toolbar) {
			return $(this).closest('.widget-box')
			       .find('.widget-header').prepend(toolbar)
				   .find('.wysiwyg-toolbar').addClass('inline');
		},
		toolbar:
		[
			'bold',
			{name:'italic' , title:'Change Title!', icon: 'ace-icon fa fa-leaf'},
			'strikethrough',
			null,
			'insertunorderedlist',
			'insertorderedlist',
			null,
			'justifyleft',
			'justifycenter',
			'justifyright'
		],
		speech_button: false
	});
	
	


	$('[data-toggle="buttons"] .btn').on('click', function(e){
		var target = $(this).find('input[type=radio]');
		var which = parseInt(target.val());
		var toolbar = $('#editor1').prev().get(0);
		if(which >= 1 && which <= 4) {
			toolbar.className = toolbar.className.replace(/wysiwyg\-style(1|2)/g , '');
			if(which == 1) $(toolbar).addClass('wysiwyg-style1');
			else if(which == 2) $(toolbar).addClass('wysiwyg-style2');
			if(which == 4) {
				$(toolbar).find('.btn-group > .btn').addClass('btn-white btn-round');
			} else $(toolbar).find('.btn-group > .btn-white').removeClass('btn-white btn-round');
		}
	});


	

	//RESIZE IMAGE
	
	//Add Image Resize Functionality to Chrome and Safari
	//webkit browsers don't have image resize functionality when content is editable
	//so let's add something using jQuery UI resizable
	//another option would be opening a dialog for user to enter dimensions.
	if ( typeof jQuery.ui !== 'undefined' && ace.vars['webkit'] ) {
		
		var lastResizableImg = null;
		function destroyResizable() {
			if(lastResizableImg == null) return;
			lastResizableImg.resizable( "destroy" );
			lastResizableImg.removeData('resizable');
			lastResizableImg = null;
		}

		var enableImageResize = function() {
			$('.wysiwyg-editor')
			.on('mousedown', function(e) {
				var target = $(e.target);
				if( e.target instanceof HTMLImageElement ) {
					if( !target.data('resizable') ) {
						target.resizable({
							aspectRatio: e.target.width / e.target.height,
						});
						target.data('resizable', true);
						
						if( lastResizableImg != null ) {
							//disable previous resizable image
							lastResizableImg.resizable( "destroy" );
							lastResizableImg.removeData('resizable');
						}
						lastResizableImg = target;
					}
				}
			})
			.on('click', function(e) {
				if( lastResizableImg != null && !(e.target instanceof HTMLImageElement) ) {
					destroyResizable();
				}
			})
			.on('keydown', function() {
				destroyResizable();
			});
	    }

		enableImageResize();

		/**
		//or we can load the jQuery UI dynamically only if needed
		if (typeof jQuery.ui !== 'undefined') enableImageResize();
		else {//load jQuery UI if not loaded
			$.getScript($path_assets+"/js/jquery-ui.custom.min.js", function(data, textStatus, jqxhr) {
				enableImageResize()
			});
		}
		*/
	}


});
		</script>

		<!-- the following scripts are used in demo only for onpage help and you don't need them -->
		<link rel="stylesheet" href="/duijie/Public/assets/css/ace.onpage-help.css" />
		<link rel="stylesheet" href="/duijie/Public/docs/assets/js/themes/sunburst.css" />

		<script type="text/javascript"> ace.vars['base'] = '..'; </script>
		<script src="/duijie/Public/assets/js/ace/elements.onpage-help.js"></script>
		<script src="/duijie/Public/assets/js/ace/ace.onpage-help.js"></script>
		<script src="/duijie/Public/docs/assets/js/rainbow.js"></script>
		<script src="/duijie/Public/docs/assets/js/language/generic.js"></script>
		<script src="/duijie/Public/docs/assets/js/language/html.js"></script>
		<script src="/duijie/Public/docs/assets/js/language/css.js"></script>
		<script src="/duijie/Public/docs/assets/js/language/javascript.js"></script>
		
		
</block>
